package com.gift.recommendation.modules.admin.service;

import com.gift.recommendation.modules.admin.dao.entity.FestivalRelationEntity;
import com.gift.recommendation.modules.admin.dao.mapper.FestivalRelationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author zzh <2658137258@qq.com>
 * @date 2023/2/2
 */
@Component
public class FestivalRelationService {
    @Autowired
    private FestivalRelationMapper festivalRelationMapper;

    public void insertSelective(FestivalRelationEntity festivalRelationEntity){
        festivalRelationMapper.insertSelective(festivalRelationEntity);
    }

    public List<FestivalRelationEntity> selectByExample(Example example){
        return festivalRelationMapper.selectByExample(example);
    }

    public void deleteByExample(Example example){
        festivalRelationMapper.deleteByExample(example);
    }
}
